package com.nf.health.app.AfinalDb;

import com.nf.health.app.MyApplication;

import net.tsz.afinal.FinalDb;

public class AfinalDb {

    private static FinalDb db = null;

    private AfinalDb() {
    }

    /**
     * 获取名称为nf.db的数据库
     * @return
     */
    public static FinalDb getDb() {
        if (db == null) {
            db = FinalDb.create(MyApplication.getInstance());//重复创建不会影响数据
        }
        return db;
    }
}
